<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$softtitle%]</title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<link href="templates/css/clickmenu.css" rel="stylesheet" type="text/css" />
<link href="templates/css/pagination.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/clickmenu.js"></script>
<script type="text/javascript" src="js/pagebotton.js"></script>
<script type="text/javascript">
//当dom载入完成后开始执行
$(document).ready(function(){
	$.fn.clickMenu.setDefaults({
		arrowSrc:'templates/images/arrow_right.gif'
	});
	$('#listbottonul').clickMenu();
	if($.browser.msie){
		var h='[%$iframeheightwindow%]';
		$('#mainbody').css({
			height:h-99
		});
		var formlist=document.getElementById('selectform');
		var loadurl=formlist.elements[0].value;
		var maxperpage=formlist.elements[1].value;
		var maxhit=formlist.elements[2].value;
		var nowpage=formlist.elements[3].value;
		var loadname=formlist.elements[6].value;
		var pagetextname=formlist.elements[7].value;
		var pagebottonname=formlist.elements[8].value;
		pageDimensions(h,maxperpage,maxhit,nowpage,loadurl,loadname,pagetextname,pagebottonname,'selectform')
	}
});
//在窗口或框架被调整大小时调用的函数
function sizewindow(){
    var h=$(window).height();
    if(document.getElementById("mainnextbody")){
        $('.tabnextlist').css({
            height:h-99
        })
    }
    if(document.getElementById("mainbodybottonauto")){
        $('.managebottonadd').css({
            height:h-120
        })
    }
    if(document.getElementById("mainbody")){
        $('#mainbody').css({
            height:h-99
        })
    }
    if(document.getElementById("mainbodyauto")){
        $('.manageadd').css({
            height:h-37
        });
        $('.manageedit').css({
            height:h-37
        })
    }
	//如果selectform表单存在
    if(document.getElementById("selectform")){
        var formlist=document.getElementById('selectform');
        var loadurl=formlist.elements[0].value;
        var maxperpage=formlist.elements[1].value;
        var maxhit=formlist.elements[2].value;
        var nowpage=formlist.elements[3].value;
        var loadname=formlist.elements[6].value;
        var pagetextname=formlist.elements[7].value;
        var pagebottonname=formlist.elements[8].value;
        pageDimensions(h,maxperpage,maxhit,nowpage,loadurl,loadname,pagetextname,pagebottonname,'selectform')
    }
    if(document.getElementById("modelattselectform")){
        var formlist=document.getElementById('modelattselectform');
        var loadurl=formlist.elements[0].value;
        var maxperpage=formlist.elements[1].value;
        var maxhit=formlist.elements[2].value;
        var nowpage=formlist.elements[3].value;
        var loadname=formlist.elements[6].value;
        var pagetextname=formlist.elements[7].value;
        var pagebottonname=formlist.elements[8].value;
        pageDimensions(h,maxperpage,maxhit,nowpage,loadurl,loadname,pagetextname,pagebottonname,'modelattselectform')
    }
    if(document.getElementById("articleselectform")){
        var formlist=document.getElementById('articleselectform');
        var loadurl=formlist.elements[0].value;
        var maxperpage=formlist.elements[1].value;
        var maxhit=formlist.elements[2].value;
        var nowpage=formlist.elements[3].value;
        var loadname=formlist.elements[6].value;
        var pagetextname=formlist.elements[7].value;
        var pagebottonname=formlist.elements[8].value;
        pageDimensions(h,maxperpage,maxhit,nowpage,loadurl,loadname,pagetextname,pagebottonname,'articleselectform')
    }
}
//在窗口或框架被调整大小时发生
var resizewindow=null;
window.onresize=function(){
    var h=$(window).height();
    if(resizewindow!=h){
        sizewindow();
        resizewindow=h
    }
}
//搜索时候
function search(loadurl){
    if($.browser.version==6.0){
        var h=document.body.clientHeight
    }
    else{
        var h=$(window).height()
    }
    var formlist=document.getElementById('selectform');
    var loadurl=loadurl;
    var maxperpage=formlist.elements[1].value;
    var maxhit=formlist.elements[2].value;
    var nowpage=formlist.elements[3].value;
    var loadname=formlist.elements[6].value;
    var pagetextname=formlist.elements[7].value;
    var pagebottonname=formlist.elements[8].value;
    formlist.elements[0].value=loadurl;
    pageDimensions(h,maxperpage,maxhit,nowpage,loadurl,loadname,pagetextname,pagebottonname,'selectform')
}
</script>
</head>

<body>
<div id="mainlistbotton">[%beark name=tabmenubotton class=$listfunction,$lng,$mid,$isclass%]</div>
<div class="listitle">[%beark name=tablabel class=$listfunction%]</div>
<div id="mainbody" class="tablist">
	<form name="selectform" id="selectform" method="post">
		<input type="hidden" name="loadurl" id="loadurl" value="[%$loadurl%]">
		<input type="hidden" name="maxperpage" id="maxperpage" value="[%$MaxPerPage%]">
		<input type="hidden" name="maxhit" id="maxhit" value="[%$MaxHit%]">
		<input type="hidden" name="nowpage" id="nowpage" value="[%$nowpage%]">
		<input type="hidden" name="limitkey" id="limitkey" value="[%$limitkey%]">
		<input type="hidden" name="limitclass" id="limitclass" value="[%$limitclass%]">
		<input type="hidden" name="loadname" id="loadname" value="#loadingtabelist">
		<input type="hidden" name="pagetextname" id="pagetextname" value="#pageinfo">
		<input type="hidden" name="pagebottonname" id="pagebottonname" value="#Pagination">
		<div class="loadingdiv" id="loadingtabelist"></div>
	</form>
</div>
<div class="pagelistdiv">
	<div class="pageinfotext" id="pageinfo"></div>
	<div class="pagebottonlist" id="pagebotton"><span id="Pagination" class="pagination"></span></div>
</div>
</body>

</html>